const bodyparser=require('koa-bodyparser');
const router=require('koa-router')();
const {findF,regiestryR}=require('../utils/tool')

function fn(app){
    let files=findF();
    regiestryR(files,router);
    app.use(bodyparser());
    app.use(router.routes());
}
module.exports=fn